#include "smoker.h"

int main(int argc, char *argv[]) {
    int smoker_id = atoi(argv[1]);
    int needed_combo = atoi(argv[2]);

    while (1) {
        P(smoker_sem[needed_combo]); // 等待材料
        printf("Smoker %d (needs combo %d) is smoking...\n", smoker_id, needed_combo);
        sleep(1);
        V(supplier_sem); // 通知供应者完成
    }
    return 0;
}
